package com.md.mainpage.model

import com.md.basedpc.rx.scheduler.SchedulerUtils
import com.md.network.api.Album
import com.md.network.api.RetrofitBuilderv2
import io.reactivex.rxjava3.core.Observable

/**
 * @author liyue
 * created 2021/3/7
 * desc 获取专辑Album详情
 */
class AlbumModel {

    fun getAlbumInfo(albumId: Int):Observable<Album>{
        return RetrofitBuilderv2.apiService.getAlbumInfo(albumId)
                .compose(SchedulerUtils.ioToMain())
    }
}